package com.ruoyi.system.service.impl;

import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysPowerMapper;
import com.ruoyi.system.domain.SysPower;
import com.ruoyi.system.service.ISysPowerService;

/**
 * 供货能力Service业务层处理
 *
 * @author ruoyi
 * @date 2024-07-27
 */
@Service
public class SysPowerServiceImpl implements ISysPowerService
{
    @Autowired
    private SysPowerMapper sysPowerMapper;

    /**
     * 查询供货能力
     *
     * @param powerId 供货能力主键
     * @return 供货能力
     */
    @Override
    public SysPower selectSysPowerByPowerId(Long powerId)
    {
        return sysPowerMapper.selectSysPowerByPowerId(powerId);
    }

    /**
     * 查询供货能力列表
     *
     * @param sysPower 供货能力
     * @return 供货能力
     */
    @Override
    public List<SysPower> selectSysPowerList(SysPower sysPower)
    {
        return sysPowerMapper.selectSysPowerList(sysPower);
    }

    /**
     * 新增供货能力
     *
     * @param sysPower 供货能力
     * @return 结果
     */
    @Override
    public int insertSysPower(SysPower sysPower)
    {
        return sysPowerMapper.insertSysPower(sysPower);
    }

    /**
     * 修改供货能力
     *
     * @param sysPower 供货能力
     * @return 结果
     */
    @Override
    public int updateSysPower(SysPower sysPower)
    {
        return sysPowerMapper.updateSysPower(sysPower);
    }

    /**
     * 批量删除供货能力
     *
     * @param powerIds 需要删除的供货能力主键
     * @return 结果
     */
    @Override
    public int deleteSysPowerByPowerIds(Long[] powerIds)
    {
        return sysPowerMapper.deleteSysPowerByPowerIds(powerIds);
    }

    /**
     * 删除供货能力信息
     *
     * @param powerId 供货能力主键
     * @return 结果
     */
    @Override
    public int deleteSysPowerByPowerId(Long powerId)
    {
        return sysPowerMapper.deleteSysPowerByPowerId(powerId);
    }
}
